<!--
 * @Description: storage  
 * @Author: rendc
 * @Date: 2021-09-15 11:39:05
 * @LastEditors: rendc
 * @LastEditTime: 2021-09-15 11:49:27
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>storage</title>
</head>

<body>
  <div>

  </div>
</body>
<script>
  // var str = "briup1";
  // sessionStorage.setItem("str1", str);
  // var str = "briup2";
  // sessionStorage.setItem("str2", str);
  // var str = "briup3";
  // sessionStorage.setItem("str3", str);
  // console.log(sessionStorage.length);
  // console.log(sessionStorage.key(1));
  // sessionStorage.removeItem("str2")
  // sessionStorage.clear();
  // var str = "briup1";
  // localStorage.setItem("str1", str);
  // var str = "briup2";
  // localStorage.setItem("str2", str);
  // var str = "briup3";
  // localStorage.setItem("str3", str);
  // console.log(localStorage.length);
  // console.log(localStorage.key(1));
  // localStorage.removeItem("str2")
  localStorage.clear();
</script>

</html>